package com.sevenre.trackre.driver.utils;

import android.content.Intent;
import android.content.res.AssetManager;
import android.graphics.Typeface;

public class Utils {

	public static final String STATUS_CHANGED_INTENT = "com.sevenre.trackre.driver.STATUS_CHANGE";
	public static final String STATUS = "status";
	public static final String COMMENT = "comment";
	public static final String ROUTEID = "routeId";

	// font name

	public static final int roboto = 1;
	public static final int robotoCondensed = 2;
	public static final int helvetica = 3;
	public static final int gothic = 4;
	public static final int gothicLight = 5;
	public static final int erasBold = 6;

	public static Intent intentForNetworkAccess() {
		Intent intent = new Intent(Intent.ACTION_MAIN);
		intent.setClassName("com.android.phone",
				"com.android.phone.NetworkSetting");
		return intent;
	}

	public static Typeface getTypeFace(AssetManager assets, int id) {
		Typeface t = Typeface.createFromAsset(assets, "fonts/roboto.ttf");
		switch (id) {
		case roboto:
			t = Typeface.createFromAsset(assets, "fonts/roboto.ttf");
			break;
		case robotoCondensed:
			t = Typeface.createFromAsset(assets,"fonts/robotoCondensedRegular.ttf");
			break;
		case helvetica:
			t = Typeface.createFromAsset(assets, "fonts/roboto.ttf");
			break;
		case gothic:
			t = Typeface.createFromAsset(assets, "fonts/gothi720bt.ttf");
			break;
		case gothicLight:
			t = Typeface.createFromAsset(assets, "fonts/gothic720ltbtlight.ttf");
			break;
		case erasBold:
			t = Typeface.createFromAsset(assets, "fonts/erasBold.TTF");
			break;
		}
		return t;
	}

}
